* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 800px;
    width: 100%;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.game-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.wheel-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

#wheel {
    width: 100%;
    height: 100%;
    transition: transform 3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background-color: #333;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    z-index: 10;
}

.controls {
    flex: 1;
    min-width: 300px;
}

.probabilities, .stats {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #555;
}

.probability-sliders {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prob-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

label {
    min-width: 70px;
    color: #666;
}

.slider {
    flex: 1;
}

#spin-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin: 20px 0;
    transition: background-color 0.3s;
}

#spin-btn:hover {
    background-color: #45a049;
}

#spin-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat {
    padding: 8px;
    border-radius: 4px;
    color: white;
    text-align: center;
}

.red-stat {
    background-color: rgba(255, 0, 0, 0.7);
}

.blue-stat {
    background-color: rgba(0, 0, 255, 0.7);
}

.green-stat {
    background-color: rgba(0, 128, 0, 0.7);
}

.yellow-stat {
    background-color: rgba(255, 205, 0, 0.7);
}

#total-spins {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

#result {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: background-color 0.5s;
}

#result.red {
    background-color: rgba(255, 0, 0, 0.2);
}

#result.blue {
    background-color: rgba(0, 0, 255, 0.2);
}

#result.green {
    background-color: rgba(0, 128, 0, 0.2);
}

#result.yellow {
    background-color: rgba(255, 205, 0, 0.2);
}

@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
        align-items: center;
    }
    
    .wheel-container {
        width: 200px;
        height: 200px;
    }
    
    .controls {
        width: 100%;
    }
}

